package com.dl.mall.entity.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

/**
 * 历史订单信息信息
 * @author DL
 * @create 2022-03-25 14:11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class HistoryOrderVo implements Serializable {
/*    private Long orderId;
    private String productId;// 产品id
    private String specsImg;// 规格图片
    private String name;// 产品名称
    private String productSpecs;// 产品规格
    private BigDecimal price;// 价格
    private int total;// 各商品数量
    private BigDecimal totalAmount;// 价格

    private int orderState;// 状态
    private Timestamp createTime;//创建时间
    private Timestamp updateTime;//创建时间*/

    private String userId;// 用户id
    @JsonSerialize(using= ToStringSerializer.class)
    private String orderId;// 订单id
    private String addressId;// 地址id
    private List<OrderCartVo> historyCartVoList;// 商品信息列表，处理后的
    private BigDecimal totalAmount;// 价格
    private Integer orderState;// 状态
    private Timestamp createTime;//创建时间
    private Timestamp updateTime;//创建时间
}
